import {ResultCode} from "@/conf/resultCodeConf";


export enum PostMethod {
    GET = "get",
    POST = "post",
    POST_FORM = "postForm",
    POST_JSON = "postJson",
}

export interface RequestParameter {
    method?: PostMethod,
    url: string,
    data?: any,
    headers?: any,
    timeout?: number,
    retry?: number,
    release?: boolean | null | undefined,
    fullUrl?: boolean,
}

export interface ResultType<T> {
    code: ResultCode;
    data: T;
    message: any;
    success: boolean;
    err: boolean;
    errInfo: any;
}



